package com.blb.permission_ms.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.blb.permission_ms.entity.Permission;
import com.blb.permission_ms.entity.Role;
import com.blb.permission_ms.entity.User;
import org.springframework.security.core.GrantedAuthority;

import java.util.List;

public interface UserService extends IService<User> {

    List<Role> getRolesByUsername(String username);

    List<Permission> getPermissionByUsername(String username);

    List<GrantedAuthority> getAuthoritiesByUsername(String username);

    List<Permission> getPermissionMenuByUsername(String username);
}
